#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QPushButton>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class Figure : public QLabel
{
    Q_OBJECT
public:
    Figure(QWidget* parent);
    ~Figure(){};
    inline static int seed = 1;
    inline static int dataset_size = 10;
public slots:
    void refresh();
private:
    int id = -1;
};

class PushButton : public QPushButton
{
    Q_OBJECT
public:
    PushButton(QWidget *parent, bool pos);
    ~PushButton(){};
public slots:
    void record();
private:
    bool position;
};

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    QLabel* title;
    Figure* image1;
    Figure* image2;
    PushButton* button1;
    PushButton* button2;
};


#endif // MAINWINDOW_H
